const electron = require("electron")

const app = electron.app

const BrowserWindow = electron.BrowserWindow

let mainWindow = null

app.on("ready", () => {
    mainWindow = new BrowserWindow({
        width: 800,
        height: 600,
        resizable: false,
        webPreferences: {
            nodeIntegration: true,
            contextIsolation: false,
            enableRemoteModule: true
        }
    })
    mainWindow.loadFile("./html/index.html")
    mainWindow.on("close", () => {
        mainWindow = null
    })
})
